<?xml version="1.0"?>
<xsl:stylesheet version="1.0"
     xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:include href="topinclude.xsl"/>
<xsl:param name="vTrack_id"></xsl:param>
<xsl:param name="vPrev_id"></xsl:param>
<xsl:param name="vNext_id"></xsl:param>




<xsl:template match="//track">

<xsl:if test="@id=$vTrack_id">

        <p>Track Number: <xsl:value-of select="number"/></p><br />
        <iframe title="YouTube video player" width ="640" height = "390" src="http://www.youtube.com/embed/{$vTrack_id}" frameborder="0"></iframe>
        <p>Title: <xsl:value-of select="name"/></p>


        <hr />

	<xsl:element name="a"><xsl:attribute name="href">TrackServlet?track_id=<xsl:value-of select="$vPrev_id"/></xsl:attribute>Previous Track</xsl:element>
        |
	<xsl:element name="a"><xsl:attribute name="href">TrackServlet?track_id=<xsl:value-of select="$vNext_id"/></xsl:attribute>Next Track</xsl:element>

        

</xsl:if>

</xsl:template>



	<xsl:template match="artist[album/track/@id=$vTrack_id]">
            <h1 align="center">
	        <xsl:value-of select="album/year"/> - <xsl:value-of select="name"/>
	    </h1>

                    <h3>Summary</h3>
        <p><xsl:value-of select="summary"/></p>
	    <hr />
	    <xsl:apply-templates select="album"/><br/>
            
	</xsl:template>

	<xsl:template match="artist">
	</xsl:template>


	<xsl:template match="album">


	    <xsl:apply-templates select="track"/>

	</xsl:template>



</xsl:stylesheet>



